package com.oracle.malldemo.service.impl;

import com.oracle.malldemo.dao.ItemsDao;
import com.oracle.malldemo.dao.impl.ItemsDaoImpl;
import com.oracle.malldemo.domain.Items;
import com.oracle.malldemo.service.ItemsService;

import java.util.List;

public class ItemsServiceImpl implements ItemsService {


    private ItemsDao itemsDao = new ItemsDaoImpl();
    @Override
    public List<Items> queryAllItemsListByCatalogName(String catalogName) {
        return itemsDao.queryAllItemsListByCatalogName(catalogName);
    }

    @Override
    public Items queryItemById(Integer id) {
        return itemsDao.queryItemById(id);
    }
}
